package com.mdc;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

/**
 * @author Mordecai
 * @create 2017-05-08 下午7:57
 */
@Controller
public class MyController {
    @GetMapping("/hello")
    public String hello(ModelMap map) {
        System.out.println("MyController.hello() is called!");
        map.addAttribute("hello", "Hi, Interceptor!");
        return "index";
    }
}
